From 71ce734b14a609a1fc73e8114cbc565e1b4cfc35 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 4 Aug 2011 23:25:34 +0000 Subject: [PATCH] Adding Revision::newFromRow() function as alias for new Revision() More consistent with how we do stuff everywhere else --- includes/Revision.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/Revision.php b/includes/Revision.php index 11b5722a68..65f9bafa41 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -121,6 +121,14 @@ class Revision { return new self( $attribs ); } + /** + * @param $row + * @return Revision + */ + public static function newFromRow( $row ) { + return new self( $row ); + } + /** * Load a page revision from a given revision ID number. * Returns null if no such revision can be found. -- 2.20.1